﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interop;

namespace mediaPrime.BackgroundPlugin.RemoteControls.MCE
{
    public class Main : mediaPrime.Sdk.BackgroundPlugin
    {
        public Main()
        {
            if (Application.Current.MainWindow != null)
            {
                var source = PresentationSource.FromVisual(Application.Current.MainWindow) as HwndSource;
                source.AddHook(wndProc);
            }
        }

        private IntPtr wndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            // Handle messages...

            return IntPtr.Zero;
        }

    }
}
